FUNCTION

list._set

function _set(index: integer, value: T): T

Deprecated: Use 'set' instead

Set the element at the specified index, overwriting the element that was previously at that index. The size of the list is unchanged.

Parameters

  • index — the index of the element to set
  • value — the value to set

Returns

the overwritten element

Throws

  • exception — if the index is out of bounds

Since

0.6.0

Alias of list.set

© 2026 Chromia